#
.SUFFIXES:
#
.SUFFIXES: .cpp .o .c .h

MARCH = $(shell if [ `uname -m` = "x86_64" ]; then echo "athlon64"; else echo "i686"; fi)
ifdef IAMNOTDEFINED
  ARCH_TUNE = -mtune=$(MARCH)
else
  ARCH_TUNE = 
  JUNK = $(echo "*********** removed mtune for old compilers *************")
endif

RELEASEFLAGS =  -O2 -Wall  -march=$(MARCH) $(ARCH_TUNE) -fexceptions -fPIC
DEBUGFLAGS =  -g3 -Wall   -march=$(MARCH) $(ARCH_TUNE) -fexceptions -fPIC

all: runningmaxmin 

debug: runningmaxmin.h runningmaxmin.cpp
	g++ $(DEBUGFLAGS) -o runningmaxmin runningmaxmin.cpp

runningmaxmin : runningmaxmin.h runningmaxmin.cpp
	g++ $(RELEASEFLAGS) -o runningmaxmin runningmaxmin.cpp



